using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace XMasEditor
{
    public partial class frmInput : Form
    {
        XMas.AnimationNodeItem _destNode;

        public frmInput(XMas.AnimationNodeItem destNode)
        {
            InitializeComponent();

            _destNode = destNode;
            if (_destNode != null)
                txtName.Text = _destNode.Text;
        }

        private void buttonOk_Click(object sender, EventArgs e)
        {
            if (_destNode != null)
                _destNode.Text = txtName.Text;

            this.Close();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}